set(libhashpipe_src
    hashpipe_databuf.c       
    hashpipe_ipckey.c        
    hashpipe_thread_args.c   
    hput.c
    hashpipe_pktsock.c       
    hashpipe_udp.c           
    hashpipe_error.c         
    hashpipe_status.c        
    hashpipe_ibverbs.c       
    hashpipe_thread.c        
    hget.c
    null_output_thread.c
)

add_library(hashpipe SHARED ${libhashpipe_src})

target_link_libraries(hashpipe PUBLIC pthread m)

install(TARGETS hashpipe LIBRARY DESTINATION lib)